package com.vibration.baseinfo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vibration.socket.domain.DataList;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vibration.common.annotation.Excel;
import com.vibration.common.core.domain.BaseEntity;

/**
 * 设备管理对象 cz_equipment
 * 
 * @author wu
 * @date 2022-08-11
 */
public class CzEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    private String equipmentType;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 部门id */
    @Excel(name = "部门名称")
    private String deptName;

    /** 设备识别号 */
    @Excel(name = "设备识别号")
    private String sn;

    /** 陀螺仪编号 */
    @Excel(name = "陀螺仪编号")
    private String gyroscopeCode;

    /** 纬度 */
    @Excel(name = "纬度")
    private Double lat;

    /** 经度 */
    @Excel(name = "经度")
    private Double lon;

    /** 剩余存储KB */
    @Excel(name = "剩余存储KB")
    private String freeMemory;

    /** GPS状态 */
    @Excel(name = "GPS状态")
    private Integer gpsState;

    /** GSP卫星数 */
    @Excel(name = "GSP卫星数")
    private Integer satelliteNum;

    /** 设备温度 */
    @Excel(name = "设备温度")
    private Float temperature;

    /** 电池电压 */
    @Excel(name = "电池电压")
    private Float voltage;

    /** 采样间隔 ms */
    @Excel(name = "采样间隔 ms")
    private Float sampleInterval;

    /** 设备安装时间 */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @Excel(name = "设备安装时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;

    /** 设备安装时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installTime;

    private Integer onLineStatus;

    /** xyz数据集合 前端展示用 */
    private DataList dataList;

    private CzGyroscopeData gyroscopeData;

    private CzTemperatureData temperatureData;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipmentName(String equipmentName) 
    {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() 
    {
        return equipmentName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setGyroscopeCode(String gyroscopeCode) 
    {
        this.gyroscopeCode = gyroscopeCode;
    }

    public String getGyroscopeCode() 
    {
        return gyroscopeCode;
    }
    public void setLat(Double lat)
    {
        this.lat = lat;
    }

    public Double getLat()
    {
        return lat;
    }
    public void setLon(Double lon)
    {
        this.lon = lon;
    }

    public Double getLon()
    {
        return lon;
    }
    public void setFreeMemory(String freeMemory) 
    {
        this.freeMemory = freeMemory;
    }

    public String getFreeMemory() 
    {
        return freeMemory;
    }
    public void setGpsState(Integer gpsState) 
    {
        this.gpsState = gpsState;
    }

    public Integer getGpsState() 
    {
        return gpsState;
    }
    public void setSatelliteNum(Integer satelliteNum) 
    {
        this.satelliteNum = satelliteNum;
    }

    public Integer getSatelliteNum() 
    {
        return satelliteNum;
    }
    public void setTemperature(Float temperature)
    {
        this.temperature = temperature;
    }

    public Float getTemperature()
    {
        return temperature;
    }
    public void setVoltage(Float voltage)
    {
        this.voltage = voltage;
    }

    public Float getVoltage()
    {
        return voltage;
    }
    public void setSampleInterval(Float sampleInterval)
    {
        this.sampleInterval = sampleInterval;
    }

    public Float getSampleInterval()
    {
        return sampleInterval;
    }

    public Date getDataTime() {
        return dataTime;
    }

    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }

    public void setInstallTime(Date installTime)
    {
        this.installTime = installTime;
    }

    public Date getInstallTime() 
    {
        return installTime;
    }

    public DataList getDataList() {
        return dataList;
    }

    public void setDataList(DataList dataList) {
        this.dataList = dataList;
    }

    public CzGyroscopeData getGyroscopeData() {
        return gyroscopeData;
    }

    public void setGyroscopeData(CzGyroscopeData gyroscopeData) {
        this.gyroscopeData = gyroscopeData;
    }

    public CzTemperatureData getTemperatureData() {
        return temperatureData;
    }

    public void setTemperatureData(CzTemperatureData temperatureData) {
        this.temperatureData = temperatureData;
    }

    public String getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(String equipmentType) {
        this.equipmentType = equipmentType;
    }

    public Integer getOnLineStatus() {
        return onLineStatus;
    }

    public void setOnLineStatus(Integer onLineStatus) {
        this.onLineStatus = onLineStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentName", getEquipmentName())
            .append("deptId", getDeptId())
            .append("sn", getSn())
            .append("gyroscopeCode", getGyroscopeCode())
            .append("lat", getLat())
            .append("lon", getLon())
            .append("freeMemory", getFreeMemory())
            .append("gpsState", getGpsState())
            .append("satelliteNum", getSatelliteNum())
            .append("temperature", getTemperature())
            .append("voltage", getVoltage())
            .append("sampleInterval", getSampleInterval())
            .append("installTime", getInstallTime())
            .toString();
    }
}
